import request from '@/utils/request'

// 查询土建结构设施列表
export function listFacility(query) {
  return request({
    url: '/civil/facility/list',
    method: 'get',
    params: query
  })
}

// 查询土建结构设施
export function getFacility(facilityId) {
  return request({
    url: '/civil/facility/' + facilityId,
    method: 'get'
  })
}

// 新增土建结构设施
export function addFacility(data) {
  return request({
    url: '/civil/facility',
    method: 'post',
    data: data
  })
}

// 修改土建结构设施
export function updateFacility(data) {
  return request({
    url: '/civil/facility',
    method: 'put',
    data: data
  })
}

// 删除土建结构设施
export function delFacility(facilityId) {
  return request({
    url: '/civil/facility/' + facilityId,
    method: 'delete'
  })
}


// 导出土建结构设施
export function exportFacility(query) {
  return request({
    url: '/civil/facility/export',
    method: 'get',
    params: query
  })
}
